package com.gz.service;


import com.gz.entity.City;
import com.gz.entity.User;
import com.gz.mapper.CityMapper;
import com.gz.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityService {
    
    @Autowired
    CityMapper cityMapper;
    
    public List<City> selectByParentId(String parentId) throws Exception{
        return cityMapper.selectByParentId(parentId);
    }
 
}
